<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script src="js/util.js"></script>
<script>

    function setCookie(name , value , iDay) {

        var oDate = new Date();
        oDate.setDate(oDate.getDate()+iDay);

        document.cookie = name+'='+value+';expires='+oDate;

    }

    //setCookie('userName','ddd',365);
    //alert(getCookie('userName'));
    removeCookie('userName');
    alert(document.cookie);
</script>
</body>
</html>